/*
 * 软件版权: Mr.LEE
 * 修改记录:
 * 修改日期     修改人员  修改说明
 * ========    =======  ============================================
 * 2020/12/28  LJH  新增
 * ========    =======  ============================================
 */
package com.lagou.cloud.service;

import com.lagou.cloud.service.impl.EmailFeignServiceFallbackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 功能说明:
 *
 * @author LJH
 */
@FeignClient(value = "email-service", fallback = EmailFeignServiceFallbackImpl.class, path = "/email")
public interface EmailFeignService {

    /**
     * 发送验证码至邮箱
     * @param email 目标邮箱
     * @param content 邮件内容
     * @return 发送结果
     */
    @GetMapping(value = "/send")
    String sendEmail(@RequestParam("email") String email, @RequestParam("content") String content);
}
